using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class TriggerAnimState : AIBaseNode
    {
        protected override void OnExecute()
        {
            string animState = _entity.data.animState;
            if (!string.IsNullOrEmpty(animState))
            {
                _animator.SetTrigger(animState);
            }
            EndAction(true);    
        }
    }
}